package cn.earl.springboot.utils;

import java.util.Date;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class Task {

	// 秒、分、时、日期、月份、星期、年（可以不写）
	@Scheduled(cron = "0/5 * * * * *")
	public void task() {
		System.out.println("task  run..." + new Date());
	}
}
